import { env_steps } from '@/common/util'
// 多环境配置
const ENV_CONFIG = (function () {
    let url = ''
    let ipVal = ''
    env_steps(() => {
        // dev 本地运行环境
        url = 'https://dev.test2.wodehuajiang.com/hjapp/api'
        ipVal = 'https://dev.test2.wodehuajiang.com'
    }, () => {
        // 类生产环境, 用于功能验收(staging环境\线上测试环境)  
        url = 'https://dev.test2.wodehuajiang.com/hjapp/api'
        ipVal = 'https://dev.test2.wodehuajiang.com'
    }, () => {
        // 正式环境域名api接口地址域名
        url = 'https://release.web.wodehuajiang.com/hjapp/api'
        ipVal = 'https://release.web.wodehuajiang.com'
    })
    return {
        url,
        ipVal
    }
}())
// api接口地址
export const baseUrl = ENV_CONFIG.url
export const ip = ENV_CONFIG.ipVal
 
 